package cn.itsource.mapper;

import cn.itsource.domain.Course;
import cn.itsource.query.Query;

import java.util.List;

public interface CourseMapper {

    public List<Course> findAll();

    public Course findOne(Long id);

    public void add(Course course);

    public void update(Course course);

    public void delete(Long id);

    //分页+模糊查询
    List<Course> pageQuery(Query query);

    //批量删除
    void patchdel(Long[] ids);

    //选取EXCEL文件导入-批量导入
    void insertBatch(Course course);
}
